package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Commodity;
import cn.wolfcode.luowowo.article.domain.UserCommodity;

import java.util.List;

public interface IUserCommodityService {

    void saveOrUpdate(UserCommodity userCommodity);
    
    void deleteByPrimaryKey(Long id);

    /**
     * 查询单个
     * @param rid
     * @return
     */
    UserCommodity get(Long rid);

    /**
     * 查询全部
     * @return
     */
    List<UserCommodity> listAll();


    List<UserCommodity> selectByUserId(Long uid);

    List<UserCommodity> selectParticularsByUserId(Long uid);
}
